<!DOCTYPE html>
<html lang="zh-cmn-Hans">
  <head>
    <title>Dplayer播放器</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="Content-language" content="zh-CN">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="pragma" content="no-cache">
    <meta name="referrer" content="no-referrer" />
    <meta http-equiv="Access-Control-Allow-Origin" content="*" />
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
	<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/yellowside/dplayer/flv.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/yellowside/dplayer/Dplayer.min.css">
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/yellowside/dplayer/hls.min.js" charset="utf-8"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/yellowside/dplayer/Dplayer.min.js" charset="utf-8"></script>
<script type="text/javascript" src="https://lib.baomitu.com/jquery/1.8.2/jquery.min.js" charset="utf-8"></script>
    <style type="text/css">html,body{height:100%;margin:0;padding:0;overflow:hidden;text-align:center;background:#181818} *{margin:0;border:0;padding:0;text-decoration:none} #video{height:100%} .dplayer-logo{max-width:150px;max-height:50px;left:auto;right:5%;top:5%}</style>
  </head><style type="text/css">#ad{position:absolute;z-index:209910539;width:100%;height:100%}.closeclick{display:inline-block;width:100px;height:35px;line-height:35px;text-align:center;font-size:14px;border-radius:22px;margin:0px 10px;color:#2082B3;overflow:hidden;box-shadow:0px 2px 3px rgba(0,0,0,.3);background:#fff;position:absolute;z-index:9999;top:20px;right:35px}.pre-img{position:absolute;z-index:9998;top:50%;left:50%;border-radius:5px;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:85%;height:80%;}.pre-img img{width:100%;height:80%}#player_pause img{width:100%;height:100%}#vodlink{position:absolute;z-index:2099;width:100%;height:100%}.link{display:inline-block;width:100px;height:35px;line-height:35px;text-align:center;font-size:14px;border-radius:22px;margin:0px 10px;color:#fff;overflow:hidden;box-shadow:0px 2px 3px rgba(0,0,0,.3);background:#FF5722;position:absolute;z-index:9999;top:20px;right:35px}
</style>
<body>
<div id="ad" ></div>
<div id="vodlink" display:none;></div>
<div id="adplayer" style="height:100%;display:none;"></div>
<div id="video" ></div>
<script type="text/javascript">
var urls = "https://new.iskcd.com/20220302/1EaLEbEw/index.m3u8";
var jump = "";
var logo = "";
var pics = "https://cdn.jsdelivr.net/gh/yellowside/ckplayer/loading.gif";


$("#vodlink").remove();var dp = new DPlayer({
    container: document.getElementById('video'),
    theme: '#4C8FE8',
    volume: 1.0,
    preload: 'auto', 
    logo: logo,
    autoplay: false,
    video: {
        url: urls,
        pic: pics,
        type: 'auto'
    },
	contextmenu:[{text:"冰豆云播",link:"https://bingdou.vip/"}]
	});
dp.on('pause', function () {
      h2_pause();
});
dp.on('play', function () {
       h2_remove();
}); 
function h2_remove() {
	$('#player_pause').remove();
}
function h2_pause() {
	$('#video').before('<div id="player_pause" style="position:absolute;z-index:209910539;top:50%;left:50%;border-radius:5px;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:80%;height:80%;"><a href="https://tao.bingdou.com.cn/" target="_blank"><img src="https://img.alicdn.com/imgextra/i1/2053469401/O1CN01XKVU2d2JJi9YuJi73_!!2053469401.jpg" /></a></div>');
}  
$("#ad").html('<div class="pre-img"><a href="https://tao.bingdou.com.cn/" target="_blank"><img src="https://img.alicdn.com/imgextra/i1/2053469401/O1CN01XKVU2d2JJi9YuJi73_!!2053469401.jpg" width="100%" height="100%"/></a></div><a class="closeclick" href="javascript:;"><em id="pre_time"></em>秒后播放</a>');
function dpclose() {
    $('#ad').remove();
    $("#adplayer").remove();    
    dp.play(); 
}
function endclose() {
	$("#ad").remove();
    $("#adplayer").remove();    
    dp.play(); }
$(function() {     
    var i = "6"; 
    setTimeout(function() {      
         dpclose(); 
    }, i * 1000);  
    after();
    function after() {  
        if (i == 0) {      
            $("#pre_time").empty().append(i);      
            setTimeout(function() {        
                after();      
            }, 1000);  
        } else {      
            $("#pre_time").empty().append(i);      
            i = i - 1;      
            setTimeout(function() {        
                after();      
            }, 1000);  
        }
    }  
});
</script>
<script type="text/javascript">
        var cookie = {
          'set': function(name, value, days) {
            var exp = new Date();
            exp.setTime(exp.getTime() + days * 24 * 60 * 60 * 1000);
            var arr = document.cookie.match(new RegExp('(^| )' + name + '=([^;]*)(;|$)'));
            document.cookie = name + '=' + escape(value) + ';path=/;expires=' + exp.toUTCString();
          },
          'get': function(name) {
            var arr = document.cookie.match(new RegExp('(^| )' + name + '=([^;]*)(;|$)'));
            if (arr != null) return unescape(arr[2]);
          },
          'put': function(urls) {
            var cookie = urls.replace(/[^a-z]+/ig, '');
            var cookie = cookie.substring(cookie.length - 32);
            return cookie;
          }
        }
        dp.on('loadeddata',function() {
          cookie.get(urls) ? dp.seek(cookie.get(urls)) : dp.notice("视频已就绪");
          dp.on('timeupdate',function() {
            if (cookie) cookie.set(urls, dp.video.currentTime, 30);
          });
        });
        dp.on('ended',function() {
          dp.notice("视频播放已结束");
          if (jump != '') {
            top.location.href = jump;
          }        });
</script>
</body>
</html>